package com.ruoyi.web.xxj.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("购物车对象")
public class ShopCart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("购物车主键ID")
    private Long id;

    /**
     * 小程序用户ID
     */
    @ApiModelProperty("小程序用户ID")
    private Long wechatUserid;

    /**
     * 课程ID
     */
    @ApiModelProperty("文创ID")
    private Long productId;
    
    /**
     * 数量
     */
    @ApiModelProperty("数量")
    private Integer quantity;

    /**
     * 课程价格
     */
    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty(name = "创建时间")
    private Date createTime;
    
    @ApiModelProperty(name = "更新时间")
    private Date updateTime;

    @ApiModelProperty("文创对象")
    private Product product;
    
	public ShopCart(Long wechatUserid, Long productId) {
		super();
		this.wechatUserid = wechatUserid;
		this.productId = productId;
	}

	public ShopCart(Long wechatUserid) {
		super();
		this.wechatUserid = wechatUserid;
	}

}
